import 'babel-polyfill'
import Login from '@/views/login/index'
// member
import Home from '@/views/member/home'
import setting from '@/views/member/setting'
import addressList from '@/views/member/addressList'
import address from '@/views/member/address'
import wallet from '@/views/member/wallet'
import walletRecord from '@/views/member/walletRecord'
import security from '@/views/member/security'
import forget from '@/views/member/forget'
import resetPwd from '@/views/member/resetPwd'
import walletPwd from '@/views/member/walletPwd'
import updatePhone from '@/views/member/security/updatePhone'
// shop
import Product from '@/views/shop/product'
import Cart from '@/views/shop/cart'
import createOrder from '@/views/shop/createOrder'
export default [
  {
    path: '/login',
    name: 'login',
    component: Login,
    meta: {
      keepAlive: false
    }
  },
  {
    path: '/home',
    name: 'home',
    component: Home,
    meta: {
      keepAlive: false
    }
  },
  {
    path: '/product/:id?',
    name: 'product',
    component: Product,
    meta: {
      keepAlive: false
    }
  },
  {
    path: '/cart',
    name: 'cart',
    component: Cart,
    meta: {
      keepAlive: false
    }
  },
  {
    path: '/createOrder/:id?',
    name: 'createOrder',
    component: createOrder,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/addressList',
    name: 'addressList',
    component: addressList,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/address',
    name: 'address',
    component: address,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/wallet',
    name: 'wallet',
    component: wallet,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/wallet/record',
    name: 'walletRecord',
    component: walletRecord,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/security',
    name: 'security',
    component: security,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/forget',
    name: 'forget',
    component: forget,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/resetPwd',
    name: 'resetPwd',
    component: resetPwd,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/walletPwd',
    name: 'walletPwd',
    component: walletPwd,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/updatePhone',
    name: 'updatePhone',
    component: updatePhone,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  },
  {
    path: '/setting',
    name: 'setting',
    component: setting,
    meta: {
      keepAlive: false,
      requiresAuth: true
    }
  }
]
